Win32 : fixes Bug 679019 (Popup menu misplaced in dual monitor)
authorManuel Bachmann <tarnyko@tarnyko.net>
Fri, 1 Nov 2013 16:59:05 +0000 (17:59 +0100)
committerManuel Bachmann <tarnyko@tarnyko.net>
Fri, 1 Nov 2013 16:59:05 +0000 (17:59 +0100)
gdk/win32/gdkdevice-win32.c

index 53a5daf434556cf4122c9f4b57c47effa7b2aefb..0039e4b98cca7da3acddc4fbb1dd74a97496b7b4 100644 (file)
@@ -207,6 +207,12 @@ gdk_device_win32_query_state (GdkDevice        *device,
 
       if (win_y)
         *win_y += _gdk_offset_y;
+      
+      if (root_x)
+        *root_x += _gdk_offset_x;
+
+      if (root_y)
+        *root_y += _gdk_offset_y;
     }
 
   if (child_window)